local ts = require("ts")--写 showUI 前必须插入这一句
local json = ts.json--写 showUI 前必须插入这一句
w,h = getScreenSize();
MyTable = {
	["style"] = "default",
	["width"] = w,
	["height"] = h,
	["config"] = "save_01.dat",
	["timer"] = 99,
	["orient"] = 0,--需引擎版本 iOS v2.2.5以上版本支持,Android 暂不支持
	["pagetype"] = "multi",--需引擎版本 iOS v2.2.5,Android v2.1.5 以上版本支持
	["title"] = "触动精灵脚本配置",--需引擎版本 iOS v2.2.5,Android v1.2.4 以上版本支持
	["cancelname"] = "取消",
	["okname"] = "开始",
	pages =
	{
		{
			{
				["type"] = "Label",
				["text"] = "第一页设置",
				["size"] = 25,
				["align"] = "center",
				["color"] = "0,0,0",
			},
			{
				["type"] = "RadioGroup",
				["list"] = "选项1,选项2,选项3,选项4,选项5,选项6,选项7",
				["select"] = "1",
			},
			},{
			{
				["type"] = "Label",
				["text"] = "第二页设置",
				["size"] = 25,
				["align"] = "center",
				["color"] = "0,0,0",
			},
			{
				["type"] = "Edit",
				["prompt"] = "请输入一个字母",
				["text"] = "默认值",
				["kbtype"] = "ascii",
			},
			{
				["type"] = "Edit",
				["prompt"] = "请输入一个数字",
				["text"] = "默认值",
				["kbtype"] = "number",
			},
			},{
			{
				["type"] = "Label",
				["text"] = "第三页设置",
				["size"] = 25,
				["align"] = "center",
				["color"] = "0,0,0",
			},
			{
				["type"] = "CheckBoxGroup",
				["list"] = "选项1,选项2,选项3,选项4,选项5,选项6,选项7",
				["select"] = "3@5",
			},
			{
				["type"] = "ComboBox",
				["list"] = "选项1,选项2,选项3",
				["select"] = "1",
				["data"] = "子选项1,子选项2,子选项3,子选项4#子选项5,子选项6,子选项7#子选项8,子选项9",
				["source"] = "test"
			},
			{
				["type"] = "ComboBox",
				["select"] = "1",
				["dataSource"] = "test"
			},
		}
	} 
}
local MyJsonString = json.encode(MyTable);
retTable = {showUI(MyJsonString)};
for var = 1,#retTable do
	nLog(retTable[var]) --输出每一个返回值
end